import request from "@/utils/request";

export function updateEnabledMark(data) {
  return request({
    url: "/api/questionnaire/OqComplaintWorkOrder/updateEnabledMark",
    method: "POST",
    data,
  });
}

export function getEnableMarkCount(data) {
  return request({
    url: "/api/questionnaire/OqComplaintWorkOrder/getEnableMarkCount",
    method: "POST",
    data,
  });
}

export function urgingWorkOrder(data) {
  return request({
    url: "/api/questionnaire/OqComplaintWorkOrder/urgingWorkOrder",
    method: "POST",
    data,
  });
}

export function evaluateOrder(data) {
  return request({
    url: "/api/questionnaire/OqComplaintWorkOrder/evaluateOrder",
    method: "POST",
    data,
  });
}

export function assignOrder(data) {
  return request({
    url: "/api/questionnaire/OqComplaintWorkOrder/assignOrder",
    method: "POST",
    data,
  });
}

export function executeOrder(data) {
  return request({
    url: "/api/questionnaire/OqComplaintWorkOrder/executeOrder",
    method: "POST",
    data,
  });
}

export function getListByWorkId(data) {
  return request({
    url: "/api/questionnaire/OqComplaintWorkOrder/getListByWorkId",
    method: "POST",
    data,
  });
}

export function getWorkOrderInfo(id) {
  return request({
    url: `/api/questionnaire/OqComplaintWorkOrder/detail/${id}`,
    method: "GET",
  });
}
